package org.apache.commons.graph.bean


/**
 * 拓扑排序的结果
 *
 * @author canonical_entropy@163.com
 */
class TopoEntry<T>(val topoOrder: Int,
                   val value: T
) : Comparable<TopoEntry<T>> {
    override fun compareTo(other: TopoEntry<T>): Int {
        val d = topoOrder - other.topoOrder
        return d
    }
}